package jvmStudy.demo01.ClassLoader;

public class test06 {
    public static void main(String[] args) {
        ClassLoader sysClassLoader=ClassLoader.getSystemClassLoader();
        System.out.println("sysClassLoader:"+sysClassLoader);

        ClassLoader ExtClassLoader = sysClassLoader.getParent();
        System.out.println("sysClassLoader,parent:"+ExtClassLoader);



        System.out.println("ExtClassLoader,parent:"+ExtClassLoader.getParent());


        /**
         * 获取不到核心类库的加载器，核心类库有引导类加载器加载
         */
        System.out.println("String.class.getClassLoader():"+String.class.getClassLoader());

        /**
         * 自定义类的加载器为   sun.misc.Launcher$AppClassLoader@18b4aac2
         */
        System.out.println("test06.class.getClassLoader():"+test06.class.getClassLoader());


    }
}
